//
//  ZYXClassNameCell.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/8.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXClassNameCell.h"

@implementation ZYXClassNameCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(ZYXClassNameDerailModel *)model{
    _model = model;
    self.titleLabel.text = model.title;
    if (model.isSelect) {
        self.imgView.image = [UIImage imageNamed:@"shipin"];
        self.titleLabel.textColor = [UIColor colorWithHexString:@"#1cca62"];
    }else{
        self.imgView.image = [UIImage imageNamed:@"shipin-un"];
        self.titleLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    }
}
//- (void)setSelected:(BOOL)selected animated:(BOOL)animated
//{
//    [super setSelected:selected animated:animated];
//    [self changeSelectionColorForSelectedOrHiglightedState:selected];
//}
//
//- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
//{
//    [super setHighlighted:highlighted animated:animated];
//    [self changeSelectionColorForSelectedOrHiglightedState:highlighted];
//}
//
//- (void)changeSelectionColorForSelectedOrHiglightedState:(BOOL)state
//{
//    if (state) {
//        //选中时候的样式
//        self.imgView.image = [UIImage imageNamed:@"shipin"];
//        self.titleLabel.textColor = [UIColor colorWithHexString:@"#1cca62"];
//    }
//}

@end

